# _*_ coding:utf-8 _*_
# @File  : number_utils.py
# @Time  : 2022-03-21
# @Author: zizle


def no_point_zero(n, point=2):
    return int(n) if int(n) == float(n) else round(n, point)


def round_formatter(n, point=2):
    return n if isinstance(n, str) else round(n, point)